'use strict';

const {Controller} = require('egg');
const ResponseUtil = require('../utils/ResponseUtil');
const HelperUtil = require('../utils/HelperUtil');
const StringUtil = require('../utils/StringUtil');
const Constant = require('../config/Constant');
const request = require('request');
class UserController extends Controller {


    async getUserInfo(){
        const res = await this.ctx.service.user.getUserInfo();
        return this.ctx.body = ResponseUtil.success(res);
    }

    async userKyc(){
        const res = await this.ctx.service.user.userKyc();
        return this.ctx.body = ResponseUtil.success(res);
    }

    async userBaseInfo(){
        const res = await this.ctx.service.user.userBaseInfo();
        return this.ctx.body = ResponseUtil.success(res);
    }

    async contactPerson(){
        const res = await this.ctx.service.user.contactPerson();
        return this.ctx.body = ResponseUtil.success(res);
    }


}

module.exports = UserController;
